package com.fourth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.fourth.dao.BusinessDao;

import com.fourth.service.BusinessService;

import com.fourth.vo.UBMybusinessVo;
import com.ljx.entity.BusinessInfo;
import com.ljx.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xiaoZhu
 * @version 1.0
 * @date 2023/2/28 20:45
 */
@Service
public class BusinessServiceImpl extends ServiceImpl<BusinessDao, BusinessInfo> implements BusinessService {
    @Autowired
    private BusinessDao businessDao;
    @Override
    public Result selectAllZoneBusiness(String zoneName) {
        List<UBMybusinessVo> list=businessDao.selectAllZoneBusiness(zoneName);
        if (list==null){
            return new Result(500,"查询失败");
        }
        return new Result(200,"查询成功",list);
    }
}
